﻿#define _CRT_SECURE_NO_WARNINGS//使用指针打印数组内容
#include<stdio.h>
int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8 };
	int* p = arr;
	int n = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < n; i++)
		printf("%d ", *(p + i));
	printf("\n");


	return 0;
}